// 签名
import _bale from '../utils/package.js'
// 获取不同的接口地址
import { SSO_API, SHARE_API } from '../config/index.js'
import { Service } from '../utils/server.js'
// 小程序 专场活动中商品列表 老接口
class SpecialModel extends Service {
  getOldSpecial(params) {
    return this.postRequest(SHARE_API + '/applietLazy/selectSpecialGoods', {
      data: _bale('selectSpecialGoods', params)
    })
  }
  getSpecial(params) {
    return this.postRequest(
      SHARE_API + '/applietLazy/selectActivitySpecialGoods_2',
      {
        data: _bale('selectActivitySpecialGoods_2', params)
      }
    )
  }
  // 小程序 专场预告商品列表
  getPreSpecial(params) {
    return this.postRequest(
      SHARE_API + '/applietLazy/selectAdvanceSpecialGoods_2',
      {
        data: _bale('selectAdvanceSpecialGoods_2', params)
      }
    )
  }
  //  判断是否可进入预告商品列表
  preSpecialAuth(params) {
    return this.postRequest(
      SHARE_API + '/applietLazy/selectCarouselIntoGoodsList',
      {
        data: _bale('selectCarouselIntoGoodsList', params)
      }
    )
  }

  // 尺码搜索专场商品列表
  getSpecialBySize(params) {
    return this.postRequest(
      SHARE_API + '/applietLazy/selectSpecialGoodsBySize',
      {
        data: _bale('selectSpecialGoodsBySize', params)
      }
    )
  }
  // 获取搜索尺码
  getGoodsSize(params) {
    return this.postRequest(SHARE_API + '/applietLazy/selectGoodsSize', {
      data: _bale('selectSpecialSearch', params)
    })
  }
  getSearchItems(params) {
    return this.postRequest(SHARE_API + '/applietLazy/selectSpecialSearch', {
      data: _bale('selectSpecialSearch', params)
    })
  }
   // 查询专场发圈素材
    getSpecialMaterial(params) {
    return this.postRequest(SHARE_API + '/specialResource/querSpecialResource', {
      data: _bale('querSpecialResource', params)
    })
  }
  
}
export { SpecialModel }
